﻿using System;
using System.IO;
using Microsoft.Win32;

namespace Sinacor.OMM.Util
{
    public class STM
    {
        #region [ Public Methods ]

        public static bool CheckInstalled()
        {
            if (WindowsRegistry.KeyExists(@"SOFTWARE\CBLC-Bovespa\STM", Registry.LocalMachine) && File.Exists(string.Concat(Environment.SystemDirectory, @"\STMCom.dll")))
                return true;

            return false;
        }

        #endregion
    }
}
